<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ page import="prc.*"%>

<jsp:include page="top.jsp" />



<div id="page-body">

	<%
		int i;
		for (i = 0; i < ForumManagement.categorii.size(); i++) {
			Categorie categorie=ForumManagement.categorii.get(i);
	%>
	<div class="forabg">
		<div class="inner">
			<span class="corners-top"><span></span>
			</span>
			<ul class="topiclist">
				<li class="header">
					<dl class="icon">
						<dt>
							<%
								out.print(categorie.getNume());
							%>
						</dt>
						<dd class="topics">Topics</dd>
						<dd class="posts">Posts</dd>
						<dd class="lastpost">
							<span>Last post</span>
						</dd>
					</dl></li>
			</ul>
			<ul class="topiclist forums">
				<%
					int j;
					for (j = 0; j < categorie.sectiuni.size(); j++)  {
						Sectiune sectiune=categorie.sectiuni.get(j);
				%>
				<li class="row">
					<dl class="icon" background-repeat: no-repeat;">
						<dt title="No unread posts">
							<a href="./viewforum.jsp?cat=<% out.print(i); %>&f=<% out.print(j); %>" class="forumtitle"><% out.print(sectiune.getNume()); %></a><br />
							Description of your first forum.
						</dt>
						<dd class="topics">
							<% out.print(sectiune.getTopicNr()); %>
							<dfn>Topics</dfn>
						</dd>
						<dd class="posts">
							<% out.print(sectiune.getPostNr()); %>
							<dfn>Posts</dfn>
						</dd>
						<dd class="lastpost">
						<%
							if(sectiune.getLastPostUser()!=null){
						%>
							<span> <dfn>Last post</dfn> by <a
								style="color: #AA0000;" class="username-coloured"><% out.print(sectiune.getLastPostUser().getUsername()); %></a> <a
								href="./viewtopic.php?f=2&amp;p=2#p2">	
							</a>
						<%} else {%>
							<span> <dfn>Last post</dfn> - </span>						
						<%} %>
						</dd>
					</dl>
				</li>
				<%} %>
			</ul>
		</div>

	</div>
	<%
		}
	%>
















	<jsp:include page="bottom.jsp" />